<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page pageEncoding="utf-8" %>

<nav>
    <ol itemscope="" itemtype="https://schema.org/BreadcrumbList" class="breadcrumb">
        <li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
            <a itemprop="item" href="${pageContext.request.contextPath}/index.action">
                <span itemprop="name">首页</span>
            </a>
            <meta itemprop="position" content="1">
        </li>
        <%
            String param1 = request.getParameter("petkinds");
        %>
        <c:if test="${param1 eq '搜索狗狗'}">
            <li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
                <a itemprop="item" href="${pageContext.request.contextPath}/moredogs.action">
                    <span itemprop="name">${param1}</span>
                </a>
            </li>
        </c:if>
        <c:if test="${param1 eq '搜索猫猫'}">
            <li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
                <a itemprop="item" href="${pageContext.request.contextPath}/morecats.action">
                    <span itemprop="name">${param1}</span>
                </a>
            </li>
        </c:if>

            </a>
            <meta itemprop="position" content="2">
        </li>
        <li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem" class="active">
            <span itemprop="name">${dogdetails.name} No.${dogdetails.queryNumber}</span>
            <meta itemprop="position" content="3">
        </li>
    </ol>
</nav>